package org.algorithm.Recursion;

public class Example
{
    public static int multiply(int num)
    {
        if (num==0)
        {
            return 1;
        }

        if (num!=1)
        {
            num = multiply(num-1)*num;
        }
        return num;
    }

    public static void main(String[] args) {
        int multiply = multiply(0);

        System.out.println(multiply);
    }
}
